package com.eu.ebpm.engine.entity.args;

import com.eu.ebpm.Constants;

/**
 * 流程启动参数
 * @author 王晓华
 */
public class StartupParam extends Param {

	private StartupParam() {}

	public static StartupParam init(String name, Object value) {
		return new StartupParam().add(name, value);
	}

	public static StartupParam init() {
		return new StartupParam();
	}

	public static StartupParam initAssignee(String assignee) {
		return new StartupParam().addAssignee(assignee);
	}
	
	public StartupParam add(String name, Object value) {
		args.put(name, value);
		return this;
	}

	public StartupParam addRoler(Object value) {
		args.put(Constants.STARTUP_ROLER, value);
		return this;
	}

	public StartupParam addOrg(Object value) {
		args.put(Constants.STARTUP_ORG, value);
		return this;
	}

	public StartupParam addUser(Object value) {
		args.put(Constants.STARTUP_USER, value);
		return this;
	}

	public StartupParam addAssignee(Object value) {
		args.put(Constants.STARTUP_ASSIGNEE, value);
		return this;
	}

	public Object getAssignee() {
		return args.get(Constants.STARTUP_ASSIGNEE);
	}

}
